package ilbunilcho.lol.main;

import ilbunilcho.lol.parser.ChampionRotation;
import ilbunilcho.lol.parser.Champions;

import java.io.File;
import java.io.PrintStream;
import java.util.Iterator;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;


public class TestMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		PrintStream out = System.out;
		String baseUrl = "http://na.leagueoflegends.com/en";
		
		try {
//			Document doc = Jsoup.parse(new File("D:\\workspace-my\\LoLStation\\src\\ilbunilcho\\lol\\main\\test.xml"), "UTF-8");
//			Elements body = doc.body().getElementsByTag("lol");
//			Element lol = body.get(0);
//			out.println(lol.getElementsByTag("protocol"));
//			//Elements rotations = body.select("div#content_area div#region_content div.view-content div.views-row-1 div.article_body a[href^=http]");
//			
			//챔피언
//			Champions champ = new Champions(baseUrl);
//			champ.parse();
			double i = 13.5;
			
			
			//로테이션
//			ChampionRotation cr = new ChampionRotation(baseUrl);
//			out.println(cr.getRotation()[0]);
//			if(src != null && src.length() > 0) {
//			int start = src.lastIndexOf("/") + 1;
//			int end = src.lastIndexOf(".");
//			
//			String rotation_name = src.substring(start, end);
//			
//			out.println(rotation_name);
//		}
			
//			out.println(LOL_REGION.na.getLanguage()[0]);
//			out.println(LOL_REGION.na.getSuffix(LOL_REGION.na.getLanguage()[0]));
//			out.println(LOL_URL.base.getUrl(LOL_REGION.euw.toString(), LOL_REGION.euw.getSuffix(LOL_REGION.euw.getLanguage()[1]), LOL_URL.champions.getUrl()));
			
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
